(function(){
    console.log('开始');


    /**
     * js从数组删除指定元素
     */

     var arr = [1,2,3,4,5,6,6];
     
     function remove(arr,value){
        var index = arr.indexOf(value);
        arr.splice(index,1);
        return arr;
     }

     var a = remove(arr,6);
     console.log(a);

     /**
      * 
      */
})();